EXECS=$(wildcard *.pl)
FASTAS=$(wildcard *.fasta)
OUTS=$(FASTAS:.fasta=.out)
STDS=$(FASTAS:.fasta=.std)

.PHONY: check clean 

AvgCodonSpacing.%.out: AvgCodonSpacing.%.fasta
	@echo "Gathering statistics for: $@"
	@../AvgCodonSpacing.pl $< > $@

CodonFreqStdDev.%.out: HumanCodonFreq.txt CodonFreqStdDev.%.fasta
	@echo "Gathering statistics for: $@"
	@../CodonFreqStdDev.pl $^ > $@

PairID.%.out: PairID.%.fasta
	@echo "Gathering statistics for: $@"
	@../PairID.pl $< > $@

SeedStatistics.%.out: SeedStatistics.%.seed SeedStatistics.%.fasta 
	@echo "Gathering statistics for: $@"
	@../SeedStatistics.pl $^ > $@

%.std: %.out
	@diff -b $< $@
	@echo '$< Passed'

check:
	@$(MAKE) --always-make $(STDS)
clean:
	@echo "Removing *.out"
	@rm -f *.out
